package br.org.credfaz.apaga.dao;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

import br.org.credfaz.apaga.factory.ConnectionFactory;

public class ClienteInstUnidadeDAO {
	
private final Connection connection;
	
	public ClienteInstUnidadeDAO(){
		try{
			connection = new ConnectionFactory().getConnection();
		}catch (SQLException e){
			throw new RuntimeException(e);
		}
	}
	
	public void apaga(){
		String sql = "delete from clienteinstunidade";
		PreparedStatement stmt;
		try{
			stmt = connection.prepareStatement(sql);
			stmt.execute();
			
		}catch (SQLException e){
			throw new RuntimeException(e);
		}
	}

}
